package com.fxz.bean.utils;

import lombok.SneakyThrows;
import org.dom4j.Document;
import org.dom4j.io.SAXReader;

import java.io.InputStream;

/**
 * @author Fxz
 * @version 1.0
 * @date 2021-08-12 20:05
 */
public class DocumentReader {
    @SneakyThrows
    public static Document createDocument(InputStream inputStream) {
        SAXReader saxReader = new SAXReader();
        return saxReader.read(inputStream);
    }
}
